#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    : HttpDownloadFile.py
@Desc    : 
@Version : 1.0
@Author  : echohelper 
@Email   : echohelper@qq.com
@WebSite : www.github.com/echohelper
@Time    : 2021/09/24 11:21:19
'''
# Start typing your code from here

import urllib.request


class HttpDownloadFile:

    def DownloadFile(self, url:str, path:str, fullname:str) -> str:
        data = ''
        try:
            data,_ = urllib.request.urlretrieve(url, path + fullname)
        except PermissionError:
            print('DownloadFile PermissionError')

        return data + path + fullname
